package com.butnet.myframe.template.impl;

import com.butnet.myframe.template.Template;
import com.butnet.myframe.template.TemplateNode;

public class TemplateImpl extends TemplateNodeImpl implements Template {
	private TemplateNode root = null;
	public TemplateImpl() {
		super(TemplateNodeImpl.TEMPLATE, "模板");
		setOwnerTemplate(this);
	}

	@Override
	public TemplateNode root() {
		return root;
	}

	@Override
	public void setRoot(TemplateNode root) {
		this.root = root;
		root.setOwnerTemplate(this);
	}
}
